package com.splic.product.service;

import com.splic.product.domain.Order;
import com.splic.product.domain.User;
import com.splic.product.domain.UserFeedback;
import com.splic.product.domain.UserSubRecord;
import com.splic.product.dto.SendCodeDto;

public interface EmailSendCodeService {

    /**
     * 发送验证码
     * @param sendCodeDto
     * @return
     */
    public boolean sendEmailCode(SendCodeDto sendCodeDto);

    /**
     * 校验注册链接
     * @param action
     * @param radmon
     * @return
     */
    String checkEmailRegister(String action, String radmon);

    void sendEmailFeedback(UserFeedback userFeedback,String productName);

    void sendEmailSubscribe(UserSubRecord userSubRecord, User user, Order orderNo, String goodsDesc);

    /**
     * 校验验证码
     * @param action
     * @param account
     * @return
     */
    void checkEmailCode(String action, String account,String code);
}
